package cn.tedu.tea.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* @author Hyanze
* @description 内容表
* @date 2023/4/20 2023/4/20
*/
@Data
@ApiModel("内容表")
public class ContentVO implements Serializable {

    @ApiModelProperty("id")
    private Integer id;

    /** 类别ID */
    @ApiModelProperty("类别ID")
    private Integer categoryId ;

    /** 编辑器类型[markdown 富文本] */
    @ApiModelProperty("编辑器类型[markdown 富文本]")
    private String editor ;

    /** 标题 */
    @ApiModelProperty("标题")
    private String title ;

    /** 摘要 */
    @ApiModelProperty("摘要")
    private String brief ;

    /** 关键字,标签对应的id:name json对 */
    @ApiModelProperty("关键字,标签对应的id:name json对")
    private String keywords ;

    /** 排序号 */
    @ApiModelProperty("排序号")
    private Integer sort ;

    /** 封面图 */
    @ApiModelProperty("封面图")
    private String coverUrl ;

    /** 媒体类型 */
    @ApiModelProperty("媒体类型")
    private Integer mediaType ;

    /** 媒体url */
    @ApiModelProperty("媒体url")
    private String mediaUrl ;

    /** 顶数量 */
    @ApiModelProperty("顶数量")
    private Integer up ;

    /** 踩数量 */
    @ApiModelProperty("踩数量")
    private Integer  down ;


    /** 浏览量 */
    @ApiModelProperty("浏览量")
    private Integer clickTimes ;

    /** 评论量 */
    @ApiModelProperty("评论量")
    private Integer commentTimes ;

    /** IP */
    @ApiModelProperty("IP")
    private String ip ;

    /** 详情 */
    @ApiModelProperty("详情")
    private String detail ;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date  gmtCreate ;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getEditor() {
        return editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getMediaType() {
        return mediaType;
    }

    public void setMediaType(Integer mediaType) {
        this.mediaType = mediaType;
    }

    public String getMediaUrl() {
        return mediaUrl;
    }

    public void setMediaUrl(String mediaUrl) {
        this.mediaUrl = mediaUrl;
    }

    public Integer getUp() {
        return up;
    }

    public void setUp(Integer up) {
        this.up = up;
    }

    public Integer getDown() {
        return down;
    }

    public void setDown(Integer down) {
        this.down = down;
    }

    public Integer getClickTimes() {
        return clickTimes;
    }

    public void setClickTimes(Integer clickTimes) {
        this.clickTimes = clickTimes;
    }

    public Integer getCommentTimes() {
        return commentTimes;
    }

    public void setCommentTimes(Integer commentTimes) {
        this.commentTimes = commentTimes;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    public String toString() {
        return "ContentVO{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", editor='" + editor + '\'' +
                ", title='" + title + '\'' +
                ", brief='" + brief + '\'' +
                ", keywords='" + keywords + '\'' +
                ", sort=" + sort +
                ", coverUrl='" + coverUrl + '\'' +
                ", mediaType=" + mediaType +
                ", mediaUrl='" + mediaUrl + '\'' +
                ", up=" + up +
                ", down=" + down +
                ", clickTimes=" + clickTimes +
                ", commentTimes=" + commentTimes +
                ", ip='" + ip + '\'' +
                ", detail='" + detail + '\'' +
                ", gmtCreate=" + gmtCreate +
                '}';
    }
}
